package com.rules.admin.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.rules.admin.dao.UnitCaseExpectAssetDao;
import com.rules.admin.entity.UnitCaseExpectAsset;
import com.rules.admin.service.UnitCaseExpectAssetService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UnitCaseExpectAssetServiceImpl extends ServiceImpl<UnitCaseExpectAssetDao, UnitCaseExpectAsset> implements UnitCaseExpectAssetService {
   public List<UnitCaseExpectAsset> getAllAssetByCaseId(Long unitCaseId) {
      LambdaQueryWrapper<UnitCaseExpectAsset> queryWrapper = new LambdaQueryWrapper<>();
      queryWrapper.eq(UnitCaseExpectAsset::getUnitCaseId,unitCaseId);
      return this.baseMapper.selectList(queryWrapper);
   }
}
